package com.pcbly.web.bean.mail;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import com.pcbly.web.bean.AbstractBaseBean; 

public class UserReceiveMainBean extends AbstractBaseBean {

	/**
	 * 
	 */
	private static final long serialVersionUID = -202421259703731971L;
 
	private String userMailId;
	
	private int readFlag;
	
	private int flag;

	private String title;

	private String content;

	private int isAttach;

	private int isHtml;

	private String attachPath;

	private Date receiveDate;

	private String userId;
	
	private Set<UserReceiveMailBean> userReceiveMailBeans = new HashSet<UserReceiveMailBean>(0);
	
	private Set<UserReceiveMailBean> froms = new HashSet<UserReceiveMailBean>(0);
	
	private Set<UserReceiveMailBean> fromTos = new HashSet<UserReceiveMailBean>(
			0);

	private Set<UserReceiveMailBean> fromCCs = new HashSet<UserReceiveMailBean>(
			0);

	private Set<UserReceiveMailBean> fromBCCs = new HashSet<UserReceiveMailBean>(
			0); 
	
	 
    
	public Set<UserReceiveMailBean> getUserReceiveMailBeans() {
		return userReceiveMailBeans;
	}

	public void setUserReceiveMailBeans(
			Set<UserReceiveMailBean> userReceiveMailBeans) {
		this.userReceiveMailBeans = userReceiveMailBeans;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserMailId() {
		return userMailId;
	}

	public void setUserMailId(String userMailId) {
		this.userMailId = userMailId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	 

	public int getReadFlag() {
		return readFlag;
	}

	public void setReadFlag(int readFlag) {
		this.readFlag = readFlag;
	}

	public int getFlag() {
		return flag;
	}

	public void setFlag(int flag) {
		this.flag = flag;
	}

	public int getIsAttach() {
		return isAttach;
	}

	public void setIsAttach(int isAttach) {
		this.isAttach = isAttach;
	}

	public int getIsHtml() {
		return isHtml;
	}

	public void setIsHtml(int isHtml) {
		this.isHtml = isHtml;
	}

	public String getAttachPath() {
		return attachPath;
	}

	public void setAttachPath(String attachPath) {
		this.attachPath = attachPath;
	}

	public Date getReceiveDate() {
		return receiveDate;
	}

	public void setReceiveDate(Date receiveDate) {
		this.receiveDate = receiveDate;
	} 

	public Set<UserReceiveMailBean> getFroms() {
		return froms;
	}

	public void setFroms(Set<UserReceiveMailBean> froms) {
		this.froms = froms;
	}

	public Set<UserReceiveMailBean> getFromTos() {
		return fromTos;
	}

	public void setFromTos(Set<UserReceiveMailBean> fromTos) {
		this.fromTos = fromTos;
	}

	public Set<UserReceiveMailBean> getFromCCs() {
		return fromCCs;
	}

	public void setFromCCs(Set<UserReceiveMailBean> fromCCs) {
		this.fromCCs = fromCCs;
	}

	public Set<UserReceiveMailBean> getFromBCCs() {
		return fromBCCs;
	}

	public void setFromBCCs(Set<UserReceiveMailBean> fromBCCs) {
		this.fromBCCs = fromBCCs;
	}

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	/**
	 * @see java.lang.Object#equals(Object)
	 */
	public boolean equals(Object object) {
		return EqualsBuilder.reflectionEquals(this, object);
	}

	/**
	 * @see java.lang.Object#hashCode()
	 */
	public int hashCode() {
		return HashCodeBuilder.reflectionHashCode(this);
	}

	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return ToStringBuilder.reflectionToString(this,
				ToStringStyle.MULTI_LINE_STYLE);
	}

}
